<template>
  <EchoInput
    v-bind="$attrs"
    :type="show ? 'text' : 'password'"
    :label="label"
    :model-value="modelValue"
    @update:modelValue="$emit('update:modelValue', $event)"
  />
</template>

<script setup>
  import { ref } from 'vue';
  import EchoInput from './EchoInput.vue';

  const props = defineProps({
    modelValue: String,
    label: String,
  });
  const show = ref(false);
</script>
